#include<iostream>
#include "Meanu.h"
#include "students.h"
#include "identtifiy.h""
#include"globalFile.h"

using namespace std;

//主函数
int main()
{
	//初始化全局变量
	//初始化学生信息
	Meanu meanu;

	while (true)
	{
		//显示菜单
		meanu.showMenu();
		int choice = -1;

		cin >> choice;

		switch (choice)
		{
			//学生代表登录
		case 1:
			meanu.login(STUDENT_FILE, 1);
			break;
			//教师登录
		case 2:
			meanu.login(TEACHER_FILE, 2);
			break;
			//管理员登录
		case 3:
			meanu.login(ADMIN_FILE, 3);
			break;
			//退出程序
		case 0:
			cout << "学生代表正在登陆中..................................." << endl;
			cout << "欢迎下次使用语言" << endl;
			exit(0);
			break;
		default:
			cout << "输入错误，请重新输入!" << endl;
			system("pause");
			system("cls");
			break;
		}
	}

	return 0;
}